
package org.come.npc;

import org.come.action.NpcMenuAction;
import org.come.socket.Agreement;
import org.come.socket.SendMessageUntil;

public class DBExp implements NpcMenuAction {
	public DBExp() {
	}

	@Override
    public void menuControl(String type) {
		String senmes;
		if ("我要领取一小时双倍时间".equals(type)) {
			senmes = Agreement.getAgreement().usercardAgreement("R3600");
			SendMessageUntil.toServer(senmes);
		} else if ("我要领取二小时双倍时间".equals(type)) {
			senmes = Agreement.getAgreement().usercardAgreement("R7200");
			SendMessageUntil.toServer(senmes);
		} else if ("我要领取三小时双倍时间".equals(type)) {
			senmes = Agreement.getAgreement().usercardAgreement("R10800");
			SendMessageUntil.toServer(senmes);
		} else if ("我要冻结双倍时间".equals(type)) {
			senmes = Agreement.getAgreement().usercardAgreement("S");
			SendMessageUntil.toServer(senmes);
		} else if ("我要查询剩余双倍时间".equals(type)) {
			senmes = Agreement.getAgreement().usercardAgreement("Q");
			SendMessageUntil.toServer(senmes);
		}

	}
}
